package com.itheima.Service.impl;

import com.itheima.Service.PersonService;
import com.itheima.dao.Person;
import com.itheima.pojo.PersonDao;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class PensonServiceimpl implements PersonService {
    private Person person;
    private String name;
    private int id;
    private String[] hobby;
    private Set<String> setCourse;

    public void setPersonDaos(List<PersonDao> personDaos) {
        this.personDaos = personDaos;
    }

    private List<PersonDao> personDaos;

    public void setMapiddr(Map<String, String> mapiddr) {
        this.mapiddr = mapiddr;
    }

    private Map<String,String> mapiddr;

    public void setSetCourse(Set<String> setCourse) {
        this.setCourse = setCourse;
    }

    public void setListCourse(List<String> listCourse) {
        this.listCourse = listCourse;
    }

    private List<String> listCourse;


    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    @Override
    public void save() {
        System.out.println("personServiceimpl的方法");
        System.out.println("name"+name);
        System.out.println("id"+id);
        System.out.println(Arrays.toString(hobby));
        System.out.println(listCourse);
        System.out.println(setCourse);
        System.out.println(mapiddr);
        System.out.println(personDaos);
    }
}
